﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PicNewsEdit.aspx.cs" Inherits="CJJCH.Web.Manage.PicNewsEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Style/SystemCss.css" rel="stylesheet" type="text/css" />
    <script src="../JScript/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../JScript/Calendar/WdatePicker.js" type="text/javascript"></script>
    <script src="../Script/JQcheck.js" type="text/javascript"></script>
    <script src="../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function checkform() {
            if (IsNothing($("#txtHrefUrl"), "请输入图片链接地址！")) {
                return false;
            }
            if (IsNothing($("#txtOrder"), "请输入排序号！")) {
                return false;
            }
            else if (checkdigit($("#txtOrder"), "请输入正确的排序号！")) {
                return false;
            }
            if (IsNothing($("#txtInstructions"), "请输入新闻说明！")) {
                return false;
            }
            if (($("#txtInstructions")).length>100) {
                alert("新闻说明最多输入100个字！");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="BodyRight" style="width: 100%;">
            <div id="divtop" runat="server" style="">
                <uc:PicNewsTop ID="PicNewsTop" runat="server" IIndex="2" />
            </div>
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
                <tr>
                    <td width="1" height="100%" class="Left">
                    </td>
                    <td height="100%" valign="top">
                        <table cellpadding="0" cellspacing="0" class="add_table" style="width: 98%; margin: 10px auto;"
                            bgcolor="#FFFFFF">
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                        class="style1">
                                        图片链接地址：
                                    </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                     <asp:TextBox ID="txtHrefUrl" runat="server" Width="300" class="InputSearch_x1"></asp:TextBox>*&nbsp;&nbsp;&nbsp;形式为：http:\\www.jiankeyan.com
                                </td>
                            </tr>
                            
                            <tr>
                                <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                        class="style1">
                                        上传图片：
                                    </td>
                                <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                        <asp:FileUpload ID="fileImg" runat="server" />
                                        <asp:Label ID="lblImg" ForeColor="Red" runat="server"></asp:Label>
                                        <asp:Label ID="Label1" runat="server" Text="如果不选择图片默认为原来的图片"></asp:Label>
                                    </td>
                            </tr>
                            
                                <tr>
                                    <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                        class="tdBg1">
                                        是否显示：
                                    </td>
                                    <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                        <asp:CheckBox ID="chkIsShow" runat="server" />
                                    </td>
                                </tr>
                                <tr>
                                    <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                        class="tdBg1">
                                        新闻说明：
                                    </td>
                                    <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle">
                                        <asp:TextBox ID="txtInstructions" runat="server" TextMode="MultiLine" 
                                            Height="98px" Width="393px" MaxLength="100"></asp:TextBox>*<font color="red"> 最多输入100个字</font>
                                    </td>
                                </tr>
                            <tr>
                                    <td width="120px" align="right" style="padding: 2px 10px 2px 10px;" valign="middle"
                                        class="style1">
                                        排序号：
                                    </td>
                                    <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle" 
                                        class="style1">
                                        <asp:TextBox ID="txtOrder" runat="server" class="InputSearch_x1" Width="50px">0</asp:TextBox>
                                        *
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="padding: 2px 10px 2px 10px;" valign="middle" 
                                        class="style2">
                                        操作：
                                    </td>
                                    <td align="left" style="padding: 2px 10px 2px 10px;" valign="middle" 
                                        class="style2">
                                        <asp:Button ID="btnSave" runat="server" Text="提 交" Style="padding: 2px 10px 3px 10px"
                                            Width="62px" CssClass="BtnSearch_x1" OnClick="btnSave_Click" />
                                        &nbsp;
                                        <asp:Button ID="btnBack" runat="server" Text="返 回" Style="padding: 2px 10px 2px 10px"
                                            Width="62px" CssClass="BtnSearch_x1" OnClick="btnBack_Click" />
                                            
                                    </td>
                                </tr>
                        </table>
                    </td>
                    <td width="0" height="100%" class="Right">
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
